package com.dingding.es.constant;

public enum DataType {

        TEXT("text"),
        KEYWORD("keyword"),

        FLOAT("float"),
        LONG("long"),
        INTEGER("integer"),
        SHORT("short"),
        DOUBLE("double"),
        HALF_FLOAT("half_float"),
        SCALED_FLOAT("scaled_float"),
        BYTE("byte"),

        DATE("date"),

        BOOLEAN("boolean"),
        RANGE("rang"),
        BINARY("binary"),
        ARRAY("array"),
        OBJECT("object"),
        NESTED("nested"),
        GEO_POINT("geo_point"),
        GEO_SHAPE("geo_shape"),
        IP("ip"),
        COMPLETION("completion"),
        TOKEN_COUNT("token_count"),
        ATTACHMENT("attachment"),
        PERCOLATOR("percolator");

        private final String type;

        DataType(String type) {
            this.type = type;
        }

        public String getType() {
            return type;
        }

}
